<div class="region-goods-details row">
    <div class="region-goods-left col-sm-2">商品详情</div>
    <div class=" region-goods-right col-sm-10">
        <div class="">
            {ife 'goods' $item}
            {php echo tpl_ueditor('content',$item['content'],array('height'=>'300'))}
            {else}
            <textarea id='detail' style='display:none'>{$item['content']}</textarea>
            <a href='javascript:preview_html("#detail")' class="btn btn-default">查看内容</a>
            {/if}
        </div>
    </div>
</div>
    <br>


    <div class="region-goods-details row">
        <div class="region-goods-left col-sm-2">
        <div class="col-sm-10">
            <div>
                <h4 style="line-height: 50px;font-weight: bold;">购买后可见</h4>
                <div class="col-sm-2 pull-right"  >
                    {ife 'goods' $item}
                    <input type="checkbox" class="js-switch small" name="buyshow" value="1" {if $item['buyshow']==1}checked{/if} />
                    {else}
                    {if $item['buyshow']==1}
                    <span class='text-success'>开启</span>
                    {else}
                    <span class='text-default'>关闭</span>
                    {/if}
                    {/if}
                </div>
            </div>
            <span style="font-weight: normal;font-size: 12px;display: block;">开启后购买过的商品才会显示</span>
        </div>
        </div>
        <div class="region-goods-right col-sm-10 bcontent" {if empty($item['buyshow'])}style="display: none;"{/if}>
        {ife 'goods' $item}
        {php echo tpl_ueditor('buycontent',$item['buycontent'],array('height'=>'300'))}
        {else}
        <textarea id='buycontent' style='display:none;'>{$item['buycontent']}</textarea>
        <a href='javascript:preview_html("#buycontent")' class="btn btn-default">查看内容</a>
        {/if}
    </div>

</div>
